export default {
	data() {
		return {
			isCreated: false
		}
	},
	computed: {
		lists() {
			return this.isCreated ? this.parentClsp.lists : []
		},
		selectIndex() {
			return this.isCreated ? this.parentClsp.selectIndex : -1
		},
		selectGoodsIndex() {
			return this.isCreated ? this.parentClsp.selectGoodsIndex : -1
		},
		category_id() {
			return this.isCreated ? this.parentClsp.category_id : -1
		},
		clsp_id() {
			return this.isCreated ? this.parentClsp.clsp_id : ''
		},
		is_error() {
			return this.isCreated ? this.parentClsp.is_error : ''
		},
	},
	created() {
		Object.defineProperty(this, 'parentClsp', {
			get: () => this.$getParent.call(this, 'categoryClsp') || {},
		})
		this.isCreated = true
	}
}
